<?php /* Smarty version 2.6.20, created on 2016-07-27 10:50:18
         compiled from ./shops/modify.php */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('block', 'shops', './shops/modify.php', 5, false),array('modifier', 'default', './shops/modify.php', 9, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/top.php", 'smarty_include_vars' => array('subject' => 'suppliers')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "suppliers/top.php", 'smarty_include_vars' => array('subject' => 'shops')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<div id="content">
  <form method="post">
  <?php $this->_tag_stack[] = array('shops', array('limit' => 1,'id' => $this->_tpl_vars['segment']['id'])); $_block_repeat=true;smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], null, $this, $_block_repeat);while ($_block_repeat) { ob_start(); ?>
    <table width="100%" border="0" cellpadding="5" cellspacing="0" id="editor">
      <tr>
        <td width="100" class="title">仓库名称:</td>
        <td width="240" class="content"><input name="title" type="text" id="title" value="<?php echo ((is_array($_tmp=@$_POST['title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['shops']['title'], 1) : smarty_modifier_default($_tmp, @$this->_tpl_vars['shops']['title'], 1)); ?>
" size="30" /> *</td>
        <td class="content">
        <?php if ($this->_tpl_vars['errors']['empty_title']): ?><span class="warning">仓库名称不能为空</span>
        <?php elseif ($this->_tpl_vars['errors']['exist_title']): ?><span class="warning">该仓库名称已存在</span>
        <?php else: ?>为仓库输出一个名称
        <?php endif; ?>
        </td>
      </tr>
      <tr class="noline">
        <td width="100" class="title">展示为:</td>
        <td width="240" class="content"><input name="show_title" type="text" id="title" value="<?php echo ((is_array($_tmp=@$_POST['show_title'])) ? $this->_run_mod_handler('default', true, $_tmp, @$this->_tpl_vars['shops']['show_title'], 1) : smarty_modifier_default($_tmp, @$this->_tpl_vars['shops']['show_title'], 1)); ?>
" size="30" /> *</td>
        <td class="content">
        <?php if ($this->_tpl_vars['errors']['empty_show_title']): ?><span class="warning">展示名称不能为空</span>
        <?php else: ?>填写一个展示名称
        <?php endif; ?>
        </td>
      </tr>
    </table>
    
    <div class="fr mt10">
    <input type="submit" value="确定" class="btn" />
    <a href="#" class="btn" onclick="history.back(-2);">取消</a> 
    <input name="id" type="hidden" id="id" value="<?php echo $this->_tpl_vars['shops']['id']; ?>
" />
    <input name="referer" type="hidden" id="referer" value="<?php echo ((is_array($_tmp=@$_POST['referer'])) ? $this->_run_mod_handler('default', true, $_tmp, @$_SERVER['HTTP_REFERER'], 1) : smarty_modifier_default($_tmp, @$_SERVER['HTTP_REFERER'], 1)); ?>
" />
    <input name="action" type="hidden" id="action" value="modify" />
    </div>
	<?php $_block_content = ob_get_contents(); ob_end_clean(); $_block_repeat=false;echo smarty_block_shops($this->_tag_stack[count($this->_tag_stack)-1][1], $_block_content, $this, $_block_repeat); }  array_pop($this->_tag_stack); ?>
  </form>
</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => "admin/bottom.php", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
</body>
</html>